<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="net.ssta.core.db.Record"%>
<%@ page import="net.ssta.core.db.RecordSet"%>
<%@ page import="java.util.*"%>
<%@ page import="net.ssta.common.LoginUser" %>
<%
String path = request.getContextPath();
Record selloneselfinfo = (Record)request.getAttribute("selloneselfInfo");
RecordSet newEnerClass = (RecordSet)request.getAttribute("newenergyclass");
String cooperateway = selloneselfinfo.getString("COOPERATEWAY","");
String cooperatewaystr = "面议";
if("1".equals(cooperateway)){cooperatewaystr="允许出口";}else
if("2".equals(cooperateway)){cooperatewaystr="限国内转让";}else
if("2".equals(cooperateway)){cooperatewaystr="不转让";}

String classtype = selloneselfinfo.getString("NEWENERGYCLASS","");
String classtypename = "其他";
for(int i=0;i<newEnerClass.size();i++){
	Record ecRecord = newEnerClass.get(i);
	if(classtype.equals(ecRecord.getString("OPTIONVALUE","").trim())){
		classtypename = ecRecord.getString("OPTIONNAME","").trim();
	}
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
    <TITLE>技术市场-国家安科网</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=utf-8">
    <META http-equiv=x-ua-compatible content=ie=7>
    <META content="MSHTML 6.00.6000.17107" name=GENERATOR>
    <link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />
    <LINK href="<%=path%>/includes/Fvalidate/style.css" type=text/css rel=stylesheet>
    <script type="text/javascript" src="<%=path%>/includes/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/includes/KindEditor/kindeditor.js"></script>    
    <script type="text/javascript" src="<%=path%>/includes/Fvalidate/Fvalidate.js"></script>
 
</HEAD>

<BODY>
 
<%@include file="../common/toplogin.jsp"%>    
<%@include file="../common/topbanner.jsp"%> 
<%@include file="../common/topmenu.jsp"%> 
 
<div id="contentmain">
	
    <div id="border_box">
    	<div id="ind_title_orange"><font>&nbsp;&nbsp;当前位置：<a href="/cms" style="color:#0071bc;">首页</a> > <a href="<%=path%>/market/marketindex.jsp" style="color:#0071bc;">技术市场</a> > 自荐项目</font><span></span></div>
    	<div id="int_show_con_title"><%=selloneselfinfo.getString("TITLE")%></div>
		<div id="int_show_con_content">
		<table cellpadding="0" cellspacing="0" border="0" width=90% align="center">
        	<tr><td height="10"></td></tr>
        	<tr>
            	<td height="30" width="15%" align="right">【自荐项目名称】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td width="35%" align="left" ><%=selloneselfinfo.getString("TITLE","")%></td>
                <td height="30" width="15%" align="right">【行业所属领域】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td width="35%" align="left"><%=classtypename%></td>
            </tr>
            <tr>
            	<td height="30" align="right">【关键词】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("TOPICWORDS","")%></td>
                <td height="30" align="right">【合作方式】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=cooperatewaystr%></td>
            </tr>
            <tr>
            	<td height="30" align="right">【信息发布日期】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("SUBMITDATE","")%></td>
                <td height="30" align="right">【信息有效期至】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("VALID","")%></td>
            </tr>
            <tr>
            	<td height="30" align="right">【简要说明】&nbsp;&nbsp;&nbsp;&nbsp;</td><td></td>
                <td height="30"></td><td></td>
            </tr>
            <tr>
            	<td></td><td height="80" colspan="3"><%=selloneselfinfo.getString("INTROHTML")%></td>
            </tr>
            <tr><td height="20"></td></tr>
            <tr>
            	<td height="30" align="right">【单位名称】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("LINKUNIT","")%></td>
                <td height="30" align="right">【联系人】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("LINKMAN","")%></td>
            </tr>
            <tr>
            	<td height="30" align="right">【通讯地址】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("ADDR","")%></td>
                <td height="30" align="right">【邮编】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("ZIP","")%></td>
            </tr>
            <tr>
            	<td height="30" align="right">【联系人电话】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("TEL","")%></td>
                <td height="30" align="right">【联系人Email】&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td align="left"><%=selloneselfinfo.getString("EMAIL","")%></td>
            </tr>
        </table>
		</div>
	</div>
    
    		<div id="intshowdown_botton">
				<%
				if(LoginUser.getUserId()!=null && LoginUser.getUserId()!=""){
				//只有用户登录后才能显示收藏按钮
				%>
				<span onClick="javascript:_addCollection();"><img src="<%=path%>/common/images/intshow/botton4.gif" border="0" style="cursor:hand;" /></span>&nbsp;
                <%
				}
				%>
                <a href="#" onClick="javascript:window.close();"><img src="<%=path%>/common/images/intshow/botton6.gif" border="0" /></a>&nbsp;
			</div><Br /><Br />
</div>
    
<%@include file="../../common/bottom.jsp"%>    
<form name="collectionform" id="collectionform">
	<input type="hidden" name="channelid" id="channelid" value="22">
    <input type="hidden" name="channelname" id="channelname" value="自荐项目">
    <input type="hidden" name="infotitle" id="infotitle" value="<%=selloneselfinfo.getString("TITLE")%>">
    <input type="hidden" name="infoid" id="infoid" value="<%=selloneselfinfo.getString("ID")%>">
    <input type="hidden" name="collectionurl" id="collectionurl" value="">
</form>
</BODY>
</HTML>
<script language="javascript">
	function _addCollection(){
		document.getElementById("collectionurl").value=window.location.href;
		 $.ajax({
				type: "POST", url: "<%=path%>/membercenter/collection?method=addCollection",
				data:$("#collectionform").serialize(),
				error:function(){alert("与服务器失去联系，请刷新本页面后再重试！");},
				success: function(msg){
					alert("收藏操作成功!");
				}
			 });
	}
</script>